package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 作者：wanxianyi
 * 时间：2018/3/31.
 * 包名：com.xintonghua.bussiness.bean
 */

public class StockOrderBean implements Parcelable {


    /**
     * number : 20180327194138
     * create_time : 2018-03-27 19:41:38
     * end_time : null
     * goodsList : []
     * id : 3
     * status : 1
     */

    private String number;
    private String create_time;
    private String end_time;
    private int id;
    private int status;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    private List<GoodsListBean> goodsList;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.number);
        dest.writeString(this.create_time);
        dest.writeString(this.end_time);
        dest.writeInt(this.id);
        dest.writeInt(this.status);
        dest.writeTypedList(this.goodsList);
    }

    public StockOrderBean() {
    }

    protected StockOrderBean(Parcel in) {
        this.number = in.readString();
        this.create_time = in.readString();
        this.end_time = in.readString();
        this.id = in.readInt();
        this.status = in.readInt();
        this.goodsList = in.createTypedArrayList(GoodsListBean.CREATOR);
    }

    public static final Parcelable.Creator<StockOrderBean> CREATOR = new Parcelable.Creator<StockOrderBean>() {
        @Override
        public StockOrderBean createFromParcel(Parcel source) {
            return new StockOrderBean(source);
        }

        @Override
        public StockOrderBean[] newArray(int size) {
            return new StockOrderBean[size];
        }
    };
}
